package jtk.project4.fleet.field;

/*
* Author : Rio Dermawan 
* Date Created : 1-April-2011
* Date Modified : 6-April-2011
* Version : 1.1
* */

import java.awt.Dimension;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.CheckButton;
import nl.coderight.jazz.form.field.button.PushButton;

public class RightEquipmentField extends GroupControl {
	private CheckButton PrintField;
	private PushButton saveButton;
	private PushButton cancelButton;
	
	public RightEquipmentField(String bindID){
		setTitle(""); //disesuaikan dengan nama field
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields()
	{
		Dimension dimension = new Dimension(166, 20);
		PrintField = new CheckButton("Print Trip Ticket After Saving");
		saveButton = new PushButton("Save");
		cancelButton = new PushButton("Cancel");
		
	}
	
	private void createLayout()
	{
		setLayout(new FormLayout())

		.addLabel(" ")	 		.addField(PrintField)
		.addRow()
		.addField(saveButton)
		.addRow()
		.addField(cancelButton);
	}
	
}
